libxl: unconst the event argument to the event_occurs hook.
authorIan Campbell <ian.campbell@citrix.com>
Fri, 26 Apr 2013 11:42:24 +0000 (12:42 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 1 May 2013 12:00:57 +0000 (13:00 +0100)
commit5fb11a07023959b6c91f7f37124699681011c03a
treedda1dea052d3164546608484184a66536d12e14d
parent196f03ab8401830390ae364c607aa81b4253507a
libxl: unconst the event argument to the event_occurs hook.

The event is supposed to become owned, and therefore freed, by the application
and the const prevents this.

Unfortunately there is no way to remove the const without breaking existing
callers. The best we can do is use the LIBXL_API_VERSION provisions to remove
the const for callers who wish only to support the 4.3 API and newer.

Callers who wish to support 4.2 will need to live with casting away the const.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.h
tools/libxl/libxl_event.h